﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JiJiDownApp.Lib
{
    public class AppConfig
    {
        [YamlDotNet.Serialization.YamlIgnore]
        public string AppConfigPath=  Path.Combine(AppDomain.CurrentDomain.BaseDirectory + "JiJiDownApp.yaml");
        [YamlDotNet.Serialization.YamlIgnore]
        public string? JijiDownConfigDir => Path.GetDirectoryName(JijiDownConfigFilePath);

        public string? JiJiDownCoreExePath { get; set; }
        public string JijiDownConfigFilePath { get; set; } = string.Empty;

        public AppConfig(){}

        public AppConfig( string? jiJiDownCoreExePath, string jijiDownConfigFilePath)
        {
            JijiDownConfigFilePath = jijiDownConfigFilePath;
            JiJiDownCoreExePath  = jiJiDownCoreExePath;
        }
    }
}
